﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using Tanmia.Core;
using System.Windows.Controls.Ribbon;
using Tanmia.Windows;
using Tanmia.Windows.AccountScenario;
using Tanmia.Windows.ColorScenario;
using Tanmia.Windows.DiscriminatedItemScenario;
using Tanmia.Windows.InvoiceScenario;
using Tanmia.Windows.ItemCategoryScenario;
using Tanmia.Windows.ItemScenario;
using Tanmia.Windows.PaymentScenario;
using Tanmia.Windows.PersonScenario;
using Tanmia.Windows.RepositoryScenario;
using Tanmia.Windows.UnitScenario;
using Tanmia.Windows.UserScenario;
using Tanmia.Domain;
using Tanmia.Windows.VoucherScenario;

namespace Tanmia
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            WindowManager.ShowEditor<AccountEdit, Account>();
        }

        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            WindowManager.ShowEditor<ColorEdit, Tanmia.Core.Color>();
        }

        private void Button_Click_2(object sender, RoutedEventArgs e)
        {
            WindowManager.ShowEditor<DiscriminatedItemEdit, DiscriminatedItem>();

        }

        private void Button_Click_3(object sender, RoutedEventArgs e)
        {
            WindowManager.ShowEditor<InvoiceEdit, Invoice>();

        }

        private void Button_Click_4(object sender, RoutedEventArgs e)
        {
            WindowManager.ShowEditor<ItemCategoryEdit, ItemCategory>();
        }

        private void Button_Click_5(object sender, RoutedEventArgs e)
        {
            WindowManager.ShowEditor<ItemEdit, Item>();

        }

        private void Button_Click_6(object sender, RoutedEventArgs e)
        {
            WindowManager.ShowEditor<PaymentEdit, Payment>();

        }

        private void Button_Click_7(object sender, RoutedEventArgs e)
        {
            WindowManager.ShowEditor<PersonEdit, Person>();

        }

        private void Button_Click_8(object sender, RoutedEventArgs e)
        {
            WindowManager.ShowEditor<RepositoryEdit, Repository>();

        }

        private void Button_Click_9(object sender, RoutedEventArgs e)
        {
            WindowManager.ShowEditor<UnitEdit, Unit>();

        }

        private void Button_Click_10(object sender, RoutedEventArgs e)
        {
            WindowManager.ShowEditor<UserEdit, User>();

        }

        private void Button_Click_11(object sender, RoutedEventArgs e)
        {
            WindowManager.ShowEditor<VoucherEdit, Voucher>();
        }

        private void Button_Click_12(object sender, RoutedEventArgs e)
        {
            Close();
        }
    }
}
